package de.preisrobot.entity;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;

@Entity
public class Eigenschaft {

    @Id
    @Column(name = "ID")
    private long id;

    @ManyToMany
    @JoinTable(name = "tb_eigenschaften_auspraegungen", joinColumns = { @JoinColumn(name = "eigenschaft_id",
            referencedColumnName = "id") }, inverseJoinColumns = { @JoinColumn(name = "auspraegung_id",
            referencedColumnName = "id") })
    private List<Auspraegung> auspraegungen;

}